// components/nav-bar/index.js
const app = getApp()
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    placeholder: {
      type: Boolean,
      value: false
    },
    title: {
      type: String,
      value: "lnformation Group"
    },
    back_color: {
      type: String,
      value: "#ffffff00"
    },
    show_left: {
      type: Boolean,
      value: true
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    statusBarHeight: app.globalData.statusBarHeight,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    Comeback() {
      wx.navigateBack({
        fail: () => {
          wx.switchTab({
            url: '/pages/index/index',
          })
        }
      })
    }
  }
})